package model.environmentConfig;

public class ContactPerson
{

	String name;
	String email;
	String phoneNumber;
	
	public String getName()
	{
		return name;
	}
	
	public void setName(String setName)
	{
		name = setName;
	}
	
	public String getEmail()
	{
		return email;
	}
	
	public void setEmail(String setEmail)
	{
		email = setEmail;
	}
	
	public String getPhoneNumber()
	{
		return phoneNumber;
	}
	
	public void setPhoneNumber(String setPhoneNumber)
	{
		phoneNumber = setPhoneNumber;
	}
	
	@Override
	public boolean equals(Object cp){
		if(!(cp instanceof ContactPerson)){
			return(false);
		}
		
		ContactPerson conper=(ContactPerson)cp;
		
		if(this.email.compareToIgnoreCase(conper.getEmail())!=0){
			return(false);
		}
		if(this.name.compareToIgnoreCase(conper.getName())!=0){
			return(false);
		}
		if(this.phoneNumber.compareToIgnoreCase(conper.getPhoneNumber())!=0){
			return(false);
		}
		
		return(true);
	}
}
